﻿<!--#include file="include/conn_f.asp"-->
<!--#include file="include/function.asp"-->
<!--#include file="top.asp"-->
<!--#include file="left.asp"-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="stylesheet" href="include/css.css" type="text/css">
</head>
<%
If Session("cust_id")="" Then
    Response.Write "请先登录会员,再使用此功能!"
    Response.End
End If
orders_id=saferequest("orders_id",1)
comp_content=saferequest("comp_content",0)
product_name=saferequest("card_name",0)


sql="select * from customer where cust_id="&Session("cust_id")
Set rs=conn.execute(sql)
If Not rs.eof Then
    cust_username=rs("username")
    name=rs("name")
    email=rs("email")
    phone=rs("phone")
    qq=rs("qq")
End If
comp_from="7"


sql="insert into complain(cust_username,name,email,phone,im,comp_from,orders_id,pro_name,content,content_time)"
sql=sql&" values('"&cust_username&"','"&name&"','"&email&"','"&phone&"','"&qq&"',"&comp_from&","&orders_id
sql=sql&",'"&product_name&"','"&comp_content&"',now())"

conn.execute sql
Response.Write "<center>投诉提交成功！<br />请1天后查看回复<br /><br />"
Response.Write "<a href='history.asp'>回我的定单</a>"
%>
<!--#include file="bottom.asp"-->
